go get github.com/google/wire/cmd/wire
go install github.com/google/wire/cmd/wire


export PATH=$PATH:/home/debi/go/bin

base_dir=$(
  cd "$(dirname "$0")"
  pwd
)
function logger() {
      front=$1
      back=$2
      content=$3
      echo -e "\e["$back";"$front"m"$content"\e[0m"
}
cd $base_dir
logger 33 40 "Current $base_dir"


function Parse() {
    dirPath=$1
    dirPathLast=$2
    fileNameLast=$3
     if [  -d $base_dir/$dirPath/$dirPath$dirPathLast ]; then
          fileFullPath=$base_dir/$dirPath/$dirPath$dirPathLast
          cd $fileFullPath
          if [  -f $base_dir/$dirPath/$dirPath$dirPathLast/$dirPath.$fileNameLast.go ]; then
              logger 36 40 "$dirPath.$fileNameLast.go"

              wireRouter gen $dirPath.$fileNameLast.go
          fi
          cd $base_dir
     fi

}

declare -A defaultMap=( ["wire"]="Wire" )
#Parse "" "" defaultMap

asd=/home/debi/go/bin
echo $asd
